package genedit.controller;

import genedit.model.Workspace;
import genedit.model.graph.GraphElement;
import genedit.model.graph.classModel.CompositionLink;

import java.awt.Dimension;
import java.awt.geom.Point2D;

public class CompositionCreator implements Creator {
	
	@Override
	public GraphElement instantiate(Point2D position, Dimension size) {
		return new CompositionLink(Workspace.getInstance().getActiveDocument().getModel(), "Composition "
				+ Workspace.getInstance().getActiveDocument().getModel().getElementCount());
	}

}
